"""
@File    : operate_pathUrll.py
@Author  : qve-wzy
@Time    : 2020/9/5 0005 7:29
"""
import os
base_path = ''
class PathInfo():
    '''
    读取各种文件
    '''
    def get_project_baseUrl(self):
        '''
        :return:获取当前项目基本路径
        '''
        base_path = os.path.dirname(os.getcwd())
        return base_path

    def get_excel_fileUrl(self):
        '''
        :return:获取excel文件的路径
        '''
        excel_path = self.get_project_baseUrl() + "/config/case.xlsx"
        return excel_path

    def get_config_fileUrl(self):
        excel_path = self.get_project_baseUrl() + "/config/localElement.ini"
        return excel_path

    def get_yaml_fileUrl(self):
        yaml_path = self.get_project_baseUrl() + "/config/userconfi.yaml"
        return yaml_path

pathinfo = PathInfo()

if __name__ == '__main__':
    print(pathinfo.get_excel_fileUrl())
    pass